package com.gragra.sampling.sequentialStructure.tests;
/**
 * 
 */
import static org.junit.Assert.*;
import org.junit.Test;
import com.gragra.sampling.sequentialStructure.ExtensionLevels;
import com.gragra.sampling.sequentialStructure.PunctEnvType;
/**
 * 
 * @author Christoph Teichmann
 * 20.07.2013
 */
public class TestPunctEnvType
{
	@Test
	public void testGetLevel()
	{
		ExtensionLevels el = (ExtensionLevels) PunctEnvType.Both.getLevel();
		assertEquals(el,ExtensionLevels.PunctEnvTypeLevel);
		assertEquals(el.getValueClass("Both"),PunctEnvType.Both);
		assertArrayEquals(el.getPossibleValues(), PunctEnvType.values());
		el = (ExtensionLevels) PunctEnvType.Neither.getLevel();
		assertEquals(el,ExtensionLevels.PunctEnvTypeLevel);
		assertEquals(el.getValueClass("Neither"),PunctEnvType.Neither);
	}
	@Test
	public void testGetNumber()
	{
		for(int i=0;i<PunctEnvType.values().length;++i)
		{assertEquals(PunctEnvType.values()[i].getNumber(),i);}
	}
}